package com.cityfood.service;

import java.util.List;

import com.cityfood.pojo.CfAdvertising;
import com.cityfood.pojo.CfStation;
import com.github.pagehelper.PageInfo;

public interface ADService {
	
	/**
	 * 根据广告位置查询
	 * */
	public List<CfAdvertising> getADBySite(String site);
	
	/**
	 * 根据广告位置查询，分页
	 * */
	public PageInfo<CfAdvertising> getADBySiteAndPage(String site,Integer pageNum);
	
	/**
	 * 添加广告
	 * */
	public int insertAD(CfAdvertising advertising);
	
	/**
	 *修改广告
	 * */
	public int updateAD(CfAdvertising advertising);
	
	/**
	 * 删除广告
	 * */
	public int deletetAD(CfAdvertising advertising);
	
}
